package com.xiguaji.tiktok.task;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
//import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
//import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import org.springframework.data.jdbc.repository.config.EnableJdbcAuditing;
import org.springframework.data.jdbc.repository.config.EnableJdbcRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;


@SpringBootApplication
@EnableScheduling
@EnableJdbcRepositories(basePackages={"com.gugee.tiktok.**","com.xiguaji.tiktok.**"})
@ComponentScan({"com.gugee.tiktok.**","com.xiguaji.tiktok.**"})
@NacosPropertySource(dataId = "tiktok-task.properties", autoRefreshed = true)
public class TiktokTaskApplication {
    public static void main(String[] args) {
        SpringApplication.run(TiktokTaskApplication.class, args);
    }
}
